package com.xyf.controller;

import com.xyf.pojo.entity.TbCar;
import com.xyf.service.CarService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @program: clms-seventh
 * @description:
 * @author: 徐亚飞
 * @create: 2021-07-24 16:02
 **/
@RestController
@RequestMapping("safeguard/car")

@Api(tags="汽车录控制层")
public class CarController {

    @Autowired
    CarService service;

    @PostMapping("/findAllCars")
    @ApiOperation("查询所有汽车名")
    public List<TbCar> findAllCars(){
        return service.findAllCars();
    }
}
